package org.ethan.user.mapper;

import org.ethan.basic.mapper.BaseMapper;
import org.ethan.user.domain.User;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据电话号码查询用户，在用户使用电话号码注册时会用到
     * @param phone
     * @return
     */
    User findByPhone(String phone);


    User findByUsername(String username);

    User findByLoginInfoId(Long loginInfo_id);
}
